package hnlg.com.cn.systemmanage.zhenqumanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import hnlg.com.cn.model.ZhenquVo;
import hnlg.com.cn.systemmanage.zhenqumanage.mapper.ZhenquMapper;

@Service("ZhenquService")
@Transactional(value="txManager",rollbackFor=Exception.class)
public class ZhenquServiceImpl implements IZhenquService {
    @Autowired ZhenquMapper obj;
	@Override
	public boolean addZhenqu(ZhenquVo vo) throws Exception {
		return obj.addZhenqu(vo);
	}

	@Override
	public boolean deleteZhenqu(String id) throws Exception {
		return obj.deleteZhenqu(id);
	}

	@Override
	public boolean updateZhenqu(ZhenquVo vo) throws Exception {
		return obj.updateZhenqu(vo);
	}

	@Override
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public List<ZhenquVo> queryzhenqu(ZhenquVo Vo) throws Exception {
		ZhenquVo vo=new ZhenquVo();
		return obj.queryzhenqu(vo);
	}

	@Override
	public boolean deletezhenqubatch(String[] arr) throws Exception {
		return obj.deletezhenqubatch(arr);
	}

}
